 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestConsoleProgramTomJamie
{
    class Program
    {

    int value1 = 0;
    int value2 = 0;
    int result = 0;
    string value1String;
    string value2String;

        public void Main()
        {
            Console.WriteLine("Hey Jamie");
            Console.WriteLine("Enter a number");
            value1String = Console.ReadLine();
            value1 = int.Parse(value1String);
            Console.WriteLine("and another oh yea die: ");
            value2String = Console.ReadLine();
            value2 = int.Parse(value2String);
            result = adder(value1, value2);

          //Console.WriteLine("The sum of " + value1 + " and " + value2 + " is: " + result);
          Console.WriteLine("The sum of {0} and {1} is : {2}", value1, value2, result);
          Console.WriteLine("The Difference of " + value1 + " and " + value2 + " is: " + subtract(value1, value2));
          Console.ReadLine();
        }

        private int adder(int pValue1, int pValue2)
        {
            return pValue1 + pValue2;
        }
        private int subtract(int a, int b)
        {
            if (a > b)
                return a - b;
            else return b - a;
        }
    }
    public class App
    {
        static void Main(string[] args)
        {
            Program p = new Program();
            p.Main();
        }
    }
}


